<%@ taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022-04-28
  Time: 7:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
isELIgnored="false" %>
<html>
<head>
    <title>编辑新闻</title>
</head>
<body>
<mvc:form action="${news.id}" method="post">
    <table>
        <tr>
            <td colspan="2"><a href="${pageContext.request.contextPath}/author/manage_news">返回上一级</a> </td>
        </tr>
        <tr>
            <td><label for="title">标题</label></td>
            <td>
                <input id="title" name="title" value="${news.title}">
            </td>
        </tr>
        <tr>
            <td><label for="content">内容</label></td>
            <td><textarea id="content" name="content">${news.content}</textarea></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="保存修改"></td>
        </tr>
    </table>
</mvc:form>
</body>
</html>
